<script type="text/javascript">var submitted=false;</script>
<iframe id="redirect" style="display:none;" onload="if(submitted) {window.location='http://www.siliconsolar.com';}"></iframe>
<form id="contact-form" method="POST" action="https://docs.google.com/forms/d/187Cx0hlnmuKICLjTjpoQlOUU-9jzSnEU-KM8PV5Wz5E/formResponse" target="redirect" onsubmit="alert('Thank You For Your Inquiry.');">
   <p>Name:<br/>
   <input id="entry_1086865922" name="entry.1086865922" type="text" /></p>

   <p>Phone:<br/>
   <input id="entry_79664203" name="entry.79664203" type="text" /></p>

   <p>Email:<br/>
   <input id="entry_1361422409" name="entry.1361422409" type="text" /></p>

   <p>Customer Type:<br/>
   <select id="entry_1964771771" name="entry.1964771771">
      <option>Residential</option>
      <option>Commercial</option>
      <option>Government / Military</option>
      <option>School / College</option>
      <option>Dealer / Wholesaler</option>
   </select></p>

   <p>Message / Question:<br/>
   <textarea cols="40" rows="5" id="entry_1110269744" name="entry.1110269744"></textarea></p>

   <p><strong>Please Help Us Fight SPAM:</strong><br/>How Many Days Are There In A Week?</p>
  <p><select name="test" id="testfield" >
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
      <option>6</option>
      <option>7</option>
   </select></p>

   <input type="hidden" name="entry.1206972168" id="entry_1206972168" value="www.siliconsolar.com" />
   <input type="hidden" name="entry.748508535" id="entry_748508535" value="<?php the_permalink(); ?>" />
   <input type="hidden" name="entry.1864488071" id="entry_1864488071" value="" />
   <input type="hidden" name="entry.2124319186" id="entry_2124319186" value="" />
   <input type="hidden" name="entry.1557890231" id="entry_1557890231" value="" />

   <div id="submitblock">
      <p><input type="submit" value="Submit Form" /></p>
   </div>

   <script>
   $(document).ready(
    function(){
        $('input:submit').attr('disabled',true);
        $('select#testfield').change(
            function(){
                if ($(this).val() === 7){
                    $('input:submit').removeAttr('disabled'); 
                } else {
                    $('input:submit').attr('disabled',true);
                }
            });
        });
   </script>

</form>